package com.ddwl.schema.bo.distr;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 类SetGoodsProfitVo.java的实现描述：设置分润对象
 *
 * @author zach
 * @Date :2020-05-25 14:22.
 */
@Data
@ApiModel("设置商品分润入参")
public class SetGoodsProfitBo {


    @NotNull(message = "分润对象不能为空")
    @ApiModelProperty(value = "目标id",required = true)
    private String targetId;

    @NotNull(message = "目标类型不能为空")
    @ApiModelProperty(value = "目标类型:0类目分润，1商品分润，2平台分润",required = true)
    private Integer targetType;

    @NotNull(message = "佣金方式不能为空")
    @ApiModelProperty(value = "佣金方式(0价格百分比1固定金额)",required = true)
    private Integer profitType;

    @NotNull(message = "佣金不能为空")
    @ApiModelProperty(value = "佣金",required = true)
    private BigDecimal ratio;

    @NotNull(message = "状态不能为空")
    @ApiModelProperty(value = "0不生效1生效",required = true)
    private Integer status;

    @ApiModelProperty(value = "门店id",hidden = true)
    private String shopId;
}
